﻿namespace WechatMp.Web
{
    public class AppService
    {
        public App GetAPP(string appid)
        {
            /*
            string kid = "1";
            string appid = "System";
            string secret = "Y2F0Y2yhciUyMHdvbmclMFWfsaZlJTIwLm5ldA=="; 
            */
            return new App() { AppId = "System", AppSecret = "Y2F0Y2yhciUyMHdvbmclMFWfsaZlJTIwLm5ldA==", SecretVersion = "1", RequestUrl = "" };
        }
        public App GetAPP(string appid, string secret)
        {
            /*
            string kid = "1";
            string appid = "System";
            string secret = "Y2F0Y2yhciUyMHdvbmclMFWfsaZlJTIwLm5ldA=="; 
            */
            return new App() { AppId = "System", AppSecret = "Y2F0Y2yhciUyMHdvbmclMFWfsaZlJTIwLm5ldA==", SecretVersion = "1", RequestUrl = "" };
        }
        public App GetAPP1(string appid, string kid)
        {
            /*
            string kid = "1";
            string appid = "System";
            string secret = "Y2F0Y2yhciUyMHdvbmclMFWfsaZlJTIwLm5ldA=="; 
            */
            return new App() { AppId = "System", AppSecret = "Y2F0Y2yhciUyMHdvbmclMFWfsaZlJTIwLm5ldA==", SecretVersion = "1", RequestUrl = "" };
        }
    }

    public class App
    {
        public string AppId { set; get; } = string.Empty;
        public string SecretVersion { set; get; } = string.Empty;
        public string AppSecret { set; get; } = string.Empty;
        public string RequestUrl { set; get; } = string.Empty;
    }
}
